<?php
include ("../jpgraph.php");
include ("../jpgraph_bar.php");

	session_start();

// Some data
	$ydata = array();
	$ydata = $_SESSION['ydata'];
	
// Create the graph. These two calls are always required
$graph = new Graph(350,250,"auto");	

$graph ->SetScale("textlin");
$graph->yscale-> ticks->Set(5 ,5);
$graph->xscale-> ticks->Set(5 ,5);

$graph->xaxis->title->Set('Student');
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->xaxis->title->SetColor('black');

$graph->yaxis->title->Set('Score');
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->yaxis->title->SetColor('black');


// Create the linear plot
$lineplot=new BarPlot($ydata);
$lineplot->SetColor("blue");

// Add the plot to the graph
$graph->Add($lineplot);

// Display the graph
$graph->Stroke();

?>
